---
title: Badge
description: Displays an 8-bit badge component.
---

import { Badge } from "@/components/ui/8bit/badge";
import CopyCommandButton from "@/components/copy-command-button";
import InstallationCommands from "@/components/installation-commands";
import ComponentPreview from "@/components/component-preview";

<div className="flex flex-col md:flex-row items-center justify-end gap-2 mb-2">
  <CopyCommandButton
    copyCommand="pnpm dlx shadcn@latest add @8bitcn/badge"
    command="pnpm dlx shadcn@latest add @8bitcn/badge"
  />
</div>

<ComponentPreview title="8-bit Badge component" name="badge">
  <Badge>Badge</Badge>
</ComponentPreview>

## Installation

---

<InstallationCommands packageName="badge" />

## Usage

---

```tsx
import { Badge } from "@/components/ui/8bit/badge"
```

```tsx
<Badge>Badge</Badge>
```

